OPC-UA Embedded Server SDK  2.1.0
Asynchronous Security

Functions

void UAServer_Callback_process_asynchronously (uintptr_t operation_handle)
 
uintptr_t UAServer_Process_asynchronously (uintptr_t operation_handle)
 
void UAServer_Operation_completed (uintptr_t operation_handle)
 
UA_Status_t UAServer_Callback_mutex_init (UA_MUTEX_T *mutex)
 
UA_Status_t UAServer_Callback_mutex_destroy (UA_MUTEX_T *mutex)
 
UA_Status_t UAServer_Callback_mutex_lock (UA_MUTEX_T *mutex)
 
UA_Status_t UAServer_Callback_mutex_unlock (UA_MUTEX_T *mutex)
 

Detailed Description

Function Documentation

void UAServer_Callback_process_asynchronously ( uintptr_t  operation_handle)

Function provided by host to enable library to hand off asynchronous operations

The library can optionally perform certain operations asynchronously to reduce latency and jitter when under heavy load from multiple clients and/or when using a message security mode other than NONE. The library provides an operation handle to this callback. The host then passes the handle to UAServer_Process_asynchronously() on a different thread and calls UAServer_Operation_completed() on the main thread when complete. If the host does not wish to hand off the operation to another thread it can call the API functions listed above from within this callback.

Parameters
[in]operation_handleAn opaque handle to the operation to perform
uintptr_t UAServer_Process_asynchronously ( uintptr_t  operation_handle)

Function to perform an operation

Can optionally be called on a different thread.

Parameters
[in]operation_handleAn opaque handle to the operation to perform
Returns
The opaque handle to the operation performed.
void UAServer_Operation_completed ( uintptr_t  operation_handle)

Function to inform the library that an operation has been completed.

Must be called on the main thread.

Parameters
[in]operation_handleAn opaque handle to the operation performed
UA_Status_t UAServer_Callback_mutex_init ( UA_MUTEX_T *  mutex)

Initialise a mutex

Parameters
[in]mutexThe mutex to initialise. The type UA_MUTEX_T must be defined by the application developer in the build configuration

Where (UA_INCLUDE_ASYNC_OPS is > 0) this callback may be called on different threads. Ensure you provide whatever locking is necessary for your platform when enabling asynchronous operation.

Returns
The result of the operation.
UA_Status_t UAServer_Callback_mutex_destroy ( UA_MUTEX_T *  mutex)

Destroy a mutex

Parameters
[in]mutexThe mutex to destroy. The type UA_MUTEX_T must be defined by the application developer in the build configuration

Where (UA_INCLUDE_ASYNC_OPS is > 0) this callback may be called on different threads. Ensure you provide whatever locking is necessary for your platform when enabling asynchronous operation.

Returns
The result of the operation.
UA_Status_t UAServer_Callback_mutex_lock ( UA_MUTEX_T *  mutex)

Lock a mutex

Parameters
[in]mutexThe mutex to lock. The type UA_MUTEX_T must be defined by the application developer in the build configuration

Where (UA_INCLUDE_ASYNC_OPS is > 0) this callback may be called on different threads. Ensure you provide whatever locking is necessary for your platform when enabling asynchronous operation.

Returns
The result of the operation.
UA_Status_t UAServer_Callback_mutex_unlock ( UA_MUTEX_T *  mutex)

Unlock a mutex

Parameters
[in]mutexThe mutex to unlock. The type UA_MUTEX_T must be defined by the application developer in the build configuration

Where (UA_INCLUDE_ASYNC_OPS is > 0) this callback may be called on different threads. Ensure you provide whatever locking is necessary for your platform when enabling asynchronous operation.

Returns
The result of the operation.